package com.probiz.estore.order.dao.impl;

import com.probiz.estore.common.model.order.OrderShipment;
import com.probiz.estore.common.model.order.OrderShipment.FilterHqlName;
import com.probiz.estore.core.dao.impl.HibernateGenericDaoImpl;
import com.probiz.estore.order.dao.OrderShipmentDao;

/**
 * Dao implementation for OrderShipment.
 */
public class OrderShipmentDaoImpl extends HibernateGenericDaoImpl<OrderShipment> implements OrderShipmentDao {
	protected void initFilterHqlMap() {
		filterHqlMap.put(FilterHqlName.SEARCH_4_SHIP, "from OrderShipment os where os.documentType = "+OrderShipment.DOCUMENT_TYPE_SHIP+" order by os.orderShipmentId desc");
		filterHqlMap.put(FilterHqlName.SEARCH_4_RETURN, "from OrderShipment os where os.documentType = "+OrderShipment.DOCUMENT_TYPE_RETURN+" order by os.orderShipmentId desc");
	}


}
